﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="fileSizeList.aspx.cs" Inherits="PeopleRich.PeopleRichWeb.PublicClass.jPlugin.plugin.UploadFileTemplate.source.model.fileSizeList" %>
<style>
#fileSizeList{width:100%;float:left;}
.fileSizeListLoading{height:100px;background:url(style/images/ajax-loader.gif) center no-repeat;}
#fileSizeList:hover{background:#ececec;}
#fileSizeList ul{width:100%;height:100%;float:left;}
#fileSizeList ul li{width:100%;height:40px;line-height:40px;float:left;text-align:center;}
#fileSizeList ul li a{width:100%;height:100%;display:block;float:left;text-decoration:none;color:#000;}
#fileSizeList ul li a:hover{background:#333;color:#fff;}
</style>
<div id="fileSizeList" class="fileSizeListLoading">
	
	<ul></ul>

</div>
<script>
	$.ajax({

		type: 'GET',

		url: jUploadTemplate.data.config.find('server add:[key=getFileSizeList]').attr('value') + '?array=<%=array %>',

		dataType: 'xml',

		cache: false,

		success: function (xmlData) {

			$(xmlData).find('list add').each(function () {

				var _this = $(this);

				var li = $('<li><a href="javascript:;">' + $(this).attr('description') + '</a></li>').appendTo('#fileSizeList ul');

				li.click(function () {

					jUploadTemplate.fileOpen(_this, '<%=id %>');

				});

			});

			$('#fileSizeList').removeClass('fileSizeListLoading');

		}

	});
</script>